<extend name="Base/member"/>

<block name="body">
  <div class="user-box shop">
    <include file="Sdp/topbar" />

    <notempty name="lists">
      <div class="user-order">
        <div class="list">
          <notempty name="lists">
  <volist name="lists" id="vo">
    <div class="item">
      <div class="row">
        <div class="col-xs-12">
          <div class="hd clearfix">
            <span class="col-xs-9">下单时间：{$vo.create_time|time_format}</span>
            <span class="text-right col-xs-3">订单号：{$vo.order_sn}</span>
          </div>
        </div>
        <div class="col-xs-12 bd clearfix">
          <div class="col-xs-4">
              <foreach name="vo.item_ids_arr" item="item">
                  <a href="{:U('/Item/detail',array('id' => $item['item_id']))}" target="_blank" style="margin: 0 3px 3px 0"><img src="{:get_image_thumb($item['cover_path'], 60, 60)}" width="60" title="{$item|get_item_name}"></a>
              </foreach>
             
          </div>
          <div class="col-xs-3 text-center">
            <span class="text-danger text-amount">{$vo.price}元</span>
          </div>
          <div class="col-xs-3 text-center">
            <if condition="$vo.flow eq 'in'">
                已返现
                <else/>
                已退款
            </if>
              <span class="text-danger">{$vo.amount}</span> 元
          </div>
        </div>
      </div>
      <!-- <p>
        <em>订单号：{$vo['order_sn']}</em>
        <em class="pull-right">{:time_format($vo['create_time'], 'Y-m-d')}</em>
      </p>
      <a href="javascript:;" class="item">
        <ul>
          <volist name="vo.OrderItem" id="vl">
            <li><img src="__ROOT__{:get_image_thumb($vl['cover_path'], 100, 100)}" alt=""></li>
          </volist>
        </ul>
        <span>{$vo['total_package']}个包裹 (共{$vo['total_quantity']}件商品)</span>
      </a>
      <div class="info">
        <span class="pull-right text-danger price">&yen;<em>{$vo['total_amount']}</em></span>
        <div class="status" id="Z_order_{$vo['id']}">
          已返现 <span class="text-danger">{$vo.id|get_cashback_amount}</span> 元
        </div>
      </div> -->
    </div>
  </volist>
</notempty>
        </div>
        <div class="page">{$_page}</div>
      </div>
    <else/>
      <p class="list-empty">还没有返现订单信息</p>
    </notempty>

  </div>
</block>